package com.jubao.ejb.dao;

import java.io.Serializable;
import java.util.List;

import com.jubao.ejb.entity.Product;

public interface ProductDao extends Serializable {

	// --------------------------Product--------------------------
	public Product save(Product product);

	public void deleteProductById(String id);

	/**
	 * Find Product by sysId
	 * 
	 * @param sysId
	 * @return
	 */
	public Product find(long sysId);

	/**
	 * Find Product By product id
	 * 
	 * @param id
	 * @return
	 */
	public Product find(String id);

	/**
	 * get product list 
	 * 
	 * @param supplierSysId
	 * @param pgno
	 * @param pgsize
	 * @return
	 */
	public List<Product> getProductList(long supplierSysId, int pgno, int pgsize);

	/**
	 * get count of products
	 * 
	 * @param supplierSysId
	 * @return
	 */
	public long getProductCount(long supplierSysId);
}
